<template>
	<view class="addcard-info-page">
		<!-- 导航栏 -->
		<free-nav-bar textContent="添加银行卡" isBackShow></free-nav-bar>
		<view class="addcard-wrapper">
			<view class="input-wrapper flex">
				<view class="label main-text-color">开户行</view>
				<view class="flex select__wrapper" @click="handleFruits()">
					<view class="select__content main-text-color">请选择开户行名称</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
			<view class="input-wrapper flex">
				<view class="label main-text-color">开户人</view>
				<input class="input main-text-color" type="text" placeholder="输入开户人姓名">
			</view>
			<view class="input-wrapper flex" style="border-bottom: none;">
				<view class="label main-text-color">卡号</view>
				<input class="input main-text-color" type="text" placeholder="输入卡号">
			</view>
			<view class="input-wrapper flex" style="margin-top: 16rpx;">
				<view class="label">预留手机号</view>
				<input class="input main-text-color" type="text" placeholder="请输入手机号">
				<view class="address main-text-color flex">获取验证码</view>
			</view>
			<view class="input-wrapper flex">
				<view class="label main-text-color">验证码</view>
				<input class="input main-text-color" type="text" placeholder="请输入验证码">
			</view>
			
			<view class="input-wrapper btns flex">
				<view class="btn main-bg-color">确定</view>
			</view>
		</view>
		<hqs-popup title="种植果类" v-model="showPopup">
		    <view>弹窗内容</view>
		</hqs-popup>
	</view>
</template>

<script>
	import $H from '@/common/free-lib/request.js';
	import freeNavBar from "@/components/free-ui/free-nav-bar.vue"
	export default {
		components: {
			freeNavBar
		},
		data() {
			return {
				showPopup: false,
				params: {
					name: '',
					type: null,
					address: '',
					mode: '',
					desc: '',
					full_name: '',
					phone: '',
					business_license: '',
					status: 0
				}
			}
		},
		created() {
			
		},
		methods: {
			handleFruits() {
				this.showPopup = true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.addcard-info-page {
		.input-wrapper {
			position: relative;
			padding-left: 30rpx;
			height: 88rpx;
			line-height: 88rpx;
			background: #fff;
			border-bottom: 1px solid #EBEBEB;
			
			&:last-child {
				border-bottom: none;
			}
			.label {
				width: 200rpx;
				font-size: 28rpx;
			}
			.input {
				display: block;
				flex: 1;
				font-size: 28rpx;
				height: 88rpx;
				line-height: 88rpx;
			}
			.select__wrapper {
				flex: 1;
			}
			.select__content {
				flex: 1;
				font-size: 28rpx;
				padding-right: 60rpx;
			}
			.select {
				position: absolute;
				top: 0;
				right: 0;
				display: flex;
				align-items: center;
				justify-content: center;
				cursor: pointer;
				width: auto;
				padding-left: 16rpx;
				padding-right: 30rpx;
				height: 88rpx;
			}
			.address {
				font-size: 28rpx;
				align-items: center;
				padding-right: 28rpx;
				cursor: pointer;
				
				i {
					display: block;
					margin-right: 10rpx;
				}
			}
			
			&.business__license {
				height: auto;
				line-height: normal;
				border-bottom: none;
				padding-top: 24rpx;
				padding-bottom: 24rpx;
				
				.upload {
					width: 176rpx;
					height: 128rpx;
					background: #F1F1F1;
					align-items: center;
					justify-content: center;
					cursor: pointer;
					
					i {
						display: block;
					}
				}
			}
			&.agreement__content {
				margin-top: 28rpx;
				height: 33rpx;
				line-height: 33rpx;
				background: none;
				border: none;
				
				.select-radio {
					width: 34rpx;
					height: 34rpx;
					background: #FFFFFF;
					border: 1px solid #999999;
					border-radius: 200px;
					margin-right: 14rpx;
					
					i {
						display: none;
					}
				}
				.agreement {
					font-size: 24rpx;
					
					span {
						color: #FD5052;
					}
				}
			}
			&.btns {
				margin-top: 40rpx;
				height: 74rpx;
				padding: 0 30rpx;
				align-items: center;
				justify-content: center;
				background: none;
				border: none;
				
				.btn {
					width: 100%;
					border-radius: 200px;
					font-size: 28rpx;
					color: #fff;
					cursor: pointer;
					text-align: center;
				}
			}
		}
	}
</style>
